package com.panda.takeaway.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panda.takeaway.entity.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author John
 * @create 2021-08-06-12:06
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    /**
     * 通过用户id获取user对象
     *
     * @param id 用户id
     * @return user
     */
    User getUserById(@Param("id") int id);
}
